package com.hopes.bizz.risk.transfer.bean.bo;

import com.hopes.bizz.common.core.util.StringUtils;
import lombok.Data;

/**
 * @author lyb
 * @version 1.0
 * @description: 校验结果
 * @date 2024/2/2 14:24
 */

@Data
public class RiskValidate {

    private Boolean success;

    private String msg;

    public RiskValidate() {
        this.success = true;
    }

    public RiskValidate(String msg) {
        this.msg = msg;
        this.success = StringUtils.isBlank(msg);
    }

    public RiskValidate(Boolean result, String msg) {
        this.success = result;
        this.msg = msg;
    }
}
